package com.yunxi.dealer.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.dealer.pojo.AreaManagerVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2019-07-23
 */
public interface AreaManagerDubboService {

    AreaManagerVO getById(String id) throws InvocationTargetException, IllegalAccessException;

    void saveOrUpdate(AreaManagerVO areaManagerVO) throws InvocationTargetException, IllegalAccessException;

    void removeById(String id);

    PageInfo<AreaManagerVO> findPageByVO(AreaManagerVO areaManagerVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException;

    void removeByListVo(List<AreaManagerVO> areaManagerVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException;

    List listByVo(AreaManagerVO areaManagerVO);

   void delByUserCode(String userCode);

   String getBigRegionCodeByCityManagerUserCode(String fellowId);

   PageInfo<AreaManagerVO> pageByUserCode(AreaManagerVO areaManagerVO, Integer pageNum, Integer pageSize);

   PageInfo<AreaManagerVO> pageCityNotExisit(AreaManagerVO areaManagerVO, Integer pageNum, Integer pageSize);

   List<AreaManagerVO> listByUserCode(AreaManagerVO areaManagerVO);

   List<String> getAreaManagerUserCodeByCityManagerUserCode(String fellowId);

   void changeAreaManager(AreaManagerVO areaManagerVO);
}
